package com.dc.refactoring._6_处理概括关系._12_ReplaceDelegationWithInheritance.newObject;

import lombok.Data;

@Data
public class Person {

    private String name;

    public String getLastName(){
        return name.substring(name.lastIndexOf(' ') + 1);
    }
}
